#include<bits/stdc++.h>
#include "Vector.h"

using namespace Fable;

int main(int argc, char* argv[])
{
    Vector<int> myVec;
    
    for (int i = 0; i < 100; i++) 
    {
        myVec.push_back(i);
    }
    
    for (Vector<int>::iterator iter = myVec.begin(); iter != myVec.end(); ++iter) 
    {
        std::cout << *iter << std::endl;
    }
    return 0;
}


void spareCapacity()
{
    cout << "SpareCapacity: " << endl;
    static const int N = 100000;
    static const int T = 100;
    int ialltime = 0;
    for(int t = 0; t < T; t++)
    {
        int n = rand() % N;
        int tmp = runTest(n);
        iAllTIme += tmp;
        cout << " Test " << t << ": n=" << n << " time=" << tmp << "ms" << endl;
    }
    cout << "average time: " << ialltime / T << "ms" << endl;
}// refer to ebolaemperor 
int main
{
    spareCapacity();
    return 0;
}